package cn.zniot.so.transport.asynpack;

/**
 * C报文(控制报文)
 */
public class AsynPacketC extends AsynPacket {

	private String mac = null;

	public AsynPacketC(PacketType packType) { 
		super(packType);
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer(20);
		sb.append("C");
		sb.append(" ");
		sb.append(PacketType.getType(super.packType));
		sb.append(" ");
		sb.append("uid#");
		sb.append(this.uid);
		sb.append(" ");
		if (this.mac != null) {
			sb.append("mac#");
			sb.append(this.mac);
			sb.append(" ");
		}
		return sb.toString();
	}
}
